(function(){
	angular.module('app')
		.factory('ShowAllQuestionFactory',fn);
	function fn(urlCnst) {
		var self = {};
		self.getAllEssay = function (cb) {
			urlCnst.get("admin-essay",cb);
        };
		self.deleteEssayById = function (essayId,cb) {
			urlCnst.delete("admin-essay/essay/"+essayId,cb);
        };
	    return self;
    }
})();
